load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest")

oncall("scm_client_infra")

cpp_unittest(
    name = "sqlite_inode_catalog",
    srcs = ["SqliteInodeCatalogTest.cpp"],
    supports_static_listing = False,
    deps = [
        "fbsource//third-party/googletest:gtest",
        "//eden/common/telemetry:structured_logger",
        "//eden/common/testharness:temp_file",
        "//eden/fs/config:config",
        "//eden/fs/inodes:inode_number",
        "//eden/fs/inodes:inodes",
        "//eden/fs/inodes/overlay:serialization-cpp2-types",
        "//eden/fs/inodes/sqlitecatalog:bufferedsqliteinodecatalog",
        "//eden/fs/inodes/sqlitecatalog:sqliteinodecatalog",
        "//eden/fs/inodes/test:overlay_test_util",
        "//eden/fs/telemetry:stats",
        "//eden/fs/testharness:fake_backing_store_and_tree_builder",
        "//eden/fs/testharness:test_mount",
        "//folly/test:test_utils",
    ],
)

cpp_unittest(
    name = "sqlite_tree_store",
    srcs = ["SqliteTreeStoreTest.cpp"],
    supports_static_listing = False,
    deps = [
        "fbsource//third-party/googletest:gtest",
        "//eden/common/utils:path",
        "//eden/common/utils:utils",
        "//eden/fs/inodes:inode_number",
        "//eden/fs/inodes/overlay:serialization-cpp2-types",
        "//eden/fs/inodes/sqlitecatalog:sqlitetreestore",
        "//eden/fs/model:model",
        "//eden/fs/sqlite:sqlite",
    ],
)
